package com.kaili.pojo.dto.dispatch;

import com.kaili.common.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * Created by renzhikun on 18-11-28.
 */
@Data
public class DispatchQueryDTO extends PageRequest{

    @Pattern(regexp = "^[A-Za-z0-9]{0,11}$",message = "派送人应为[A-Za-z0-9]组成的1-11位字符")
    @ApiModelProperty("派送人")
    private String dispatcherId;

    @ApiModelProperty("网点")
    private Integer siteId;

    @ApiModelProperty("开始时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String endTime;

    @ApiModelProperty("车辆ID")
    private String carId;

    @Pattern(regexp = "^[A-Za-z0-9]{0,30}$",message = "派送单号应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("派送单号")
    private String arrivalNo;

    @ApiModelProperty("来源,1标示web端,2标示PDA端")
    private Integer sourceType;

}
